ifeq ($(GUILE),)
  GUILE := guile
endif

CHECK_MODULES := \
  tests/context-free.scm \
  tests/regular.scm \
  tests/parse-context-free.scm \
  tests/bench-context-free.scm \
  $(EMPTY)

TESTS := \
  $(CHECK_MODULES) \
  $(EMPTY)

check: $(TESTS)
	for t in $(TESTS); do \
	  GUILE_LOAD_PATH=$(srcdir):$(GUILE_LOAD_PATH) \
	    $(GUILE) --auto-compile $$t; \
	done

clean:
	rm -f *.log
